/*
 * XML Type:  BuyDebt
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.BuyDebt
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML BuyDebt(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class BuyDebtImpl extends net.ofx.types.x2003.x04.impl.AbstractInvestmentBuyTransactionImpl implements net.ofx.types.x2003.x04.BuyDebt
{
    
    public BuyDebtImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName ACCRDINT$0 = 
        new javax.xml.namespace.QName("", "ACCRDINT");
    
    
    /**
     * Gets the "ACCRDINT" element
     */
    public java.lang.String getACCRDINT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCRDINT$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "ACCRDINT" element
     */
    public net.ofx.types.x2003.x04.AmountType xgetACCRDINT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(ACCRDINT$0, 0);
            return target;
        }
    }
    
    /**
     * True if has "ACCRDINT" element
     */
    public boolean isSetACCRDINT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(ACCRDINT$0) != 0;
        }
    }
    
    /**
     * Sets the "ACCRDINT" element
     */
    public void setACCRDINT(java.lang.String accrdint)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCRDINT$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ACCRDINT$0);
            }
            target.setStringValue(accrdint);
        }
    }
    
    /**
     * Sets (as xml) the "ACCRDINT" element
     */
    public void xsetACCRDINT(net.ofx.types.x2003.x04.AmountType accrdint)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AmountType target = null;
            target = (net.ofx.types.x2003.x04.AmountType)get_store().find_element_user(ACCRDINT$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.AmountType)get_store().add_element_user(ACCRDINT$0);
            }
            target.set(accrdint);
        }
    }
    
    /**
     * Unsets the "ACCRDINT" element
     */
    public void unsetACCRDINT()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(ACCRDINT$0, 0);
        }
    }
}
